var dbserver = require('../dao/dbserver.js');

// 好友申请
exports.addFriend = function(req,res){
	let data = req.body.data;
	dbserver.addFriend(data,res);
}

// 同意好友申请
exports.agreeFriend = function(req,res){
	let data = req.body.data;
	dbserver.agreeFriend(data,res);
}

// 拒绝好友申请
exports.disagreeFriend = function(req,res){
	let data = req.body.data;
	dbserver.disagreeFriend(data,res);
}